package com.lichi.zabbix.service;

import com.lichi.zabbix.auth.UserDO;
import com.lichi.zabbix.response.*;
import com.lichi.zabbix.util.BusinessWrapper;

import java.util.List;

/**
 * @author lichi
 * @create 2020-05-27 14:48
 */
public interface ZabbixService {

    void init();

    String getApiVersion();

    ZabbixResponseHost getHost(String hostid);

    BusinessWrapper<Boolean> createUser(UserDO userDO);

    ZabbixResponseUsergroup getUsergroup(String usergroup);

    ZabbixResponseHostgroup getHostgroup(String name);

    String createHostgroup(String hostgroupName);

    List<ZabbixResponseTemplate> queryTemplates();

    ZabbixResponseTemplate getTemplate(String name);

    boolean createHost(String name);

    List<ZabbixResponseItem> queryItems(String hostId);

    List<ZabbixResponseHost> getHost();
}
